package com.ylr.basic.framework.feign.fallback;

import com.ylr.base.common.tool.Result;
import com.ylr.basic.common.vo.AesVo;
import com.ylr.basic.framework.feign.YbAesBaseClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-12 10:26:47
 * className: YbAesClientFallback
 * version: 1.0
 * description:
 */

public class YbAesClientFallback implements YbAesBaseClient {

    private static final Logger log = LoggerFactory.getLogger(YbAesClientFallback.class);

    @Override
    public Result<String> encrypt(AesVo aesVo) {
        log.warn("basic模块 => 明文加密接口，请求失败回调。{}", aesVo);
        return Result.fail();
    }

    @Override
    public Result<String> encryptToHex(String plainText) {
        log.warn("basic模块 => 明文加密接口，生成十六进制密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<Map<?, String>> batchEncryptToHex(Map<?, String> paramMap) {
        log.warn("basic模块 => 批量明文加密接口，生成十六进制密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> decodeHex(String cipherText) {
        log.warn("basic模块 => AES密文解密接口，解密十六进制密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> subDecodeHex(String cipherText, Integer start, Integer end) {
        log.warn("basic模块 => AES密文半解密接口，解密十六进制密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> encryptToBase64(String plainText) {
        log.warn("basic模块 => 明文加密接口，生成Base64密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> decodeBase64(String cipherText) {
        log.warn("basic模块 => AES密文解密接口，解密Base64密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> subDecodeBase64(String cipherText, Integer start, Integer end) {
        log.warn("basic模块 => AES密文半解密接口，解密Base64密文，请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<String> decode(AesVo aesVo) {
        log.warn("basic模块 => 密文解密接口，请求失败回调。{}", aesVo);
        return Result.fail();
    }

    @Override
    public Result<Map<?, String>> batchDecode(Integer type, Map<?, String> paramMap) {
        log.warn("basic模块 => 批量密文解密接口，请求失败回调。type={} paramMap={}", type, paramMap);
        return Result.fail();
    }


}
